﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:commonControls="clr-namespace:NASA.BeAMartian.Controls">

    <Style TargetType="commonControls:ClipContentControl">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Margin" Value="0,4,0,4" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="commonControls:ClipContentControl">
                    <Grid x:Name="MainGrid">
                        <Grid.Clip>
                            <RectangleGeometry x:Name="ClipRectangleGeometry" RadiusX="6" RadiusY="6"/>
                        </Grid.Clip>
                        <ContentPresenter Cursor="{TemplateBinding Cursor}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>
